package com.syni.mdd.sjb.community.base.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.syni.mdd.sjb.common.component.mybatis.community.entity.SjbQywxExternalUserInfo;
import com.syni.mdd.sjb.common.component.mybatis.community.entity.SjbQywxExternalUserRef;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author wangbaitao
 * @version 1.0.0
 * @Date 2021/2/28
 * <h>外部联系人列表查询VO对象</h>
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserDataInfoVO {
    private String name;
    /**
     * 企业标签汇总
     */
    private Set<String> tag = new HashSet<>();
    /**
     * 个人标签汇总
     */
    private Set<String> userTag = new HashSet<>();
    private String addUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime addTime;
    private Boolean status;
    /**
     * 客户类型：1-微信客户,2-企业微信客户
     */
    private String type;
    /**
     * 企业简称
     */
    private String corpName;
    /**
     * 外部联系人详情信息
     */
    private SjbQywxExternalUserInfo userInfo;
    /**
     * 添加人信息集合
     */
    private List<SjbQywxExternalUserRef> addUserInfos;
    /**
     * 群聊信息
     */
    private List<ChatDataInfoVO> groupMsg;
}
